// 文件路径: user-module/src/main/java/org/x/user/entity/SysConfigHistoryEntity.java
package org.x.user.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;

/**
 * 系统配置历史记录表 实体类。
 */
@Data
@Table(value = "sys_config_history")
public class SysConfigHistoryEntity {

    /**
     * 历史记录ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 配置ID
     */
    @Column(value = "config_id")
    private Long configId;

    /**
     * 配置键
     */
    @Column(value = "config_key")
    private String configKey;

    /**
     * 旧值
     */
    @Column(value = "old_value")
    private String oldValue;

    /**
     * 新值
     */
    @Column(value = "new_value")
    private String newValue;

    /**
     * 操作人ID
     */
    @Column(value = "operator_id")
    private Long operatorId;

    /**
     * 操作人姓名
     */
    @Column(value = "operator_name")
    private String operatorName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(value = "created_time")
    private Date createdTime;
}
